import React from 'react';
import {connect} from 'dva';
import styles from './Users.css';
import UserList from "../components/UserList";

function Users({users}) {
  return (
    <div className={styles.normal}>
      <UserList users={users}/>
    </div>
  );
}

function mapStateToProps(state) {
  return {users: state.users};
}

export default connect(mapStateToProps)(Users);
